<div>
  <h2>基础用法</h2>
  <el-badge value="12" class="item">
    <el-button size="small">评论</el-button>
  </el-badge>
  <el-badge value="3" class="item">
    <el-button size="small">回复</el-button>
  </el-badge>
  <el-badge value="1" class="item" type="primary">
    <el-button size="small">评论</el-button>
  </el-badge>
  <el-badge value="2" class="item" type="warning">
    <el-button size="small">回复</el-button>
  </el-badge>
</div>
<style scoped>
  .item {
    margin-top: 10px;
    margin-right: 40px;
  }
</style>